package com.ruoyi.system.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 备品使用对象 lab_product_use
 * 
 * @author winner pan
 * @date 2022-03-17
 */
public class ProductUse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 使用人 */
    private String userName;

    /** 备品id */
    private Long instanceId;

    /** 使用数量 */
    @Excel(name = "使用数量")
    private Integer useNum;

    /** 用户姓名 */
    private String nickName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setInstanceId(Long instanceId) 
    {
        this.instanceId = instanceId;
    }

    public Long getInstanceId() 
    {
        return instanceId;
    }
    public void setUseNum(Integer useNum) 
    {
        this.useNum = useNum;
    }

    public Integer getUseNum() 
    {
        return useNum;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("useTime", getUseTime())
            .append("note", getNote())
            .append("userName", getUserName())
            .append("instanceId", getInstanceId())
            .append("useNum", getUseNum())
            .append("nickName", getNickName())
            .toString();
    }
   }
